<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="fixed-table-toolbar">
                    <div class="columns pull-left">
                        <button  type="button" class="btn btn-primary" onclick="add()">
                            <i class="fa fa-plus" aria-hidden="true"></i>添加
                        </button>
                        <button   type="button" class="btn  btn-danger"
                                  onclick="batchRemove()"><i class="fa fa-trash" aria-hidden="true"></i>删除
                        </button>
                    </div>
                    <div class="columns pull-right" role="group">
                        <button class="btn btn-success" onclick="reLoad()">
                            <i class="fa fa-search" aria-hidden="true"></i>查询
                        </button>
                    </div>
                    <div class="pull-right search col-md-2 nopadding">
                        <input id="softName" type="text" class="form-control" placeholder="软件名称">
                    </div>
                    <div class="pull-right search col-md-2 nopadding">
                        <input id="type" type="text" class="form-control" placeholder="类型">
                    </div>
                    <div class="pull-right search col-md-2 nopadding">
                        <input id="remark" type="text" class="form-control" placeholder="备注">
                    </div>




                </div>
                <input type="hidden" th:value="${imgPrefix}" id="definePrefix">
                <table id="softTable" data-mobile-responsive="true"></table>
            </div>
        </div>
    </div>

    <div>
        <script type="text/javascript">
            var s_edit_h = 'hidden';
            var s_showControl_h = false;
            var s_remove_h = 'hidden';
        </script>
    </div>
    <div shiro:hasPermission="read:soft:edit">
        <script type="text/javascript">
            s_edit_h = '';
        </script>
    </div>
    <div shiro:hasPermission="read:soft:showControl">
        <script type="text/javascript">
            s_showControl_h = true;
        </script>
    </div>
    <div shiro:hasPermission="read:soft:remove">
        <script type="text/javascript">
            var s_remove_h = '';
        </script>
    </div>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript" src="/js/appjs/read/soft/soft.js"></script>
</body>
</html>